package com.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableEurekaClient  //注册客户端
@ComponentScan({"com.service","com.controller"})
public class MainBoot {

    public static void main(String[] args) {
        SpringApplication.run(MainBoot.class,args);
    }
}
